package com.woniu.service;

import com.woniu.entity.PageData;
import com.woniu.entity.vo.LoginLogVO;
import com.woniu.entity.vo.ResentLoginLogVO;
import com.woniu.pojo.LoginLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sss
 * @since 2022-12-26
 */
public interface ILoginLogService extends IService<LoginLog> {

    /**
     * 查找登录日志
     *
     * @param currentPage
     * @param pageSize
     * @param phone
     * @return LoginLogVO
     * @author yemaf
     * @time 2022/12/28 11:20:25
     */
    PageData listByPhone(Integer currentPage, Integer pageSize, String phone);

    /**
     * 查询最近的登录信息
     * @param phone
     * @return ResentLoginLogVO
     * @author yemaf
     * @time 2022/12/29 14:44:30
     */
    ResentLoginLogVO resentLoginLogByPhone(String phone);
}
